import request from '@/utils/request'

export interface LoginForm {
  username: string
  password: string
}

export const login = (data: LoginForm) => {
  return request({
    url: '/admin/login',
    method: 'post',
    data
  })
} 